package main

import (
	"fmt"
	"time"
)

// 统计两个日期之间相差多少天

func delta(s1, s2 string) float64 {
	t1, _ := time.ParseInLocation("2006-01-02", s1, time.Local)
	t2, _ := time.ParseInLocation("2006-01-02", s2, time.Local)
	return t1.Sub(t2).Hours()
	t3 := time.Now().Add(7 * time)
}

func main() {
	fmt.Println(delta("2023-06-30", "2023-06-29"))
}
